package com.kfm.jdbc.day0406;



class PrintThread extends Thread {
    private int type;
    private static  int count = 0;

    public PrintThread(int type) {
        this.type = type;
    }

    @Override
    public void run() {
        while(count < 200)
        {
            if (count % 3 == type)
            {
                System.out.print( (char)('A' + type));
                count ++;
            }
        }
    }
}

public class Demo {
    public static void main(String[] args) throws Exception {
        new PrintThread(0).start();
        new PrintThread(1).start();
        new PrintThread(2).start();

    }
}
